package top.healthylife.gateway.platform.geo.api.util.client;


import lombok.Data;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import top.healthylife.gateway.platform.geo.api.config.SystemConfig;

import java.util.Map;

/**
 * 数据请求client
 * wushujia
 */
@Slf4j
@SuppressWarnings("all")
@Data
public class ClientUtil {

	@SneakyThrows
	public static <T> T getApiData(String url, Map<String, Object> paramsMap, SystemConfig geoAccount, Class<T> cls) {
		Client client = new Client(geoAccount);
		return client.getApiData(url,paramsMap,geoAccount,cls);
	}
}
